import random

from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager

# app = Flask(__name__)
# manager = Manager(app)
# # 设置连接数据库的URL
# app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://root:123456@127.0.0.1:3306/aqiyi'
#
# app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
# # 查询时会显示原始SQL语句
# app.config['SQLALCHEMY_ECHO'] = True
# db = SQLAlchemy(app)
# # 第一个参数是Flask的实例，第二个参数是Sqlalchemy数据库实例
# migrate = Migrate(app, db)
# # manager是Flask-Script的实例，这条语句在flask-Script中添加一个db命令
# manager.add_command('db', MigrateCommand)
#
#
# class Role(db.Model):
#     id = db.Column(db.Integer, primary_key=True)
#     test = db.Column(db.String(500))
#     us = db.relationship('user', backref='role')
#
#
# class User(db.Model):
#     id = db.Column(db.Integer, primary_key=True)
#     test_id = db.Column(db.Integer, default=3)
#     test = db.Column(db.String(500))
#     role_id = db.Column(db.Integer, db.ForeignKey('role.id'))
#
#
# @app.route('/')
# def test():
#     return 'hello'


r = random.randint(1, 5)
print(r)

if __name__ == '__main__':
    pass
